'----------------------------------------------------------------------------------------
'-  ASP Security Login - Version 2.0 - 01 June 2005 
'-  Copyright  2005 - Livio Siri (http://www.livio.net) - All Rights Reserved.     
'----------------------------------------------------------------------------------------

You can secure your web pages access simply adding two lines of code and two asp files.
The credentials are hard-coded, no need to store them into a database.
Only when user name and password match the user is redirected to the original page.

The zip contains 4 files:

1) readme.txt '-- This file
2) logintest.asp '-- The example page
3) security.asp '-- The page to include
e) login.asp '-- The core of the script
Make sure that last two files are in the same folder of your secured pages.

Copy and paste the following two lines of code:
on top of the pages you want to restrict access. 
<% @Language = "VBScript" %>	
<!-- #include file="security.asp"--> 
Change the extension of each secured page to .asp (if it was .html or .htm)


Edit the login.asp file and change the hard-coded user name and password to your needs!
UserName = "test"
Password = "test"

That's it!  Easy!

'---------------------------------------------------------------------------------------
'-  This script is free OpenSource; you can modify (at your own risk) any part of it 
'-  and use it both privately and commercially.
'-
'-  This script is distributed in the hope that it will be useful,
'-  but WITHOUT ANY WARRANTY; without even the implied warranty of
'-  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR ANY OTHER 
'-  WARRANTIES WHETHER EXPRESSED OR IMPLIED.
'-
'-  You may use parts of this script in your own private work, but you may NOT pass
'-  the whole or any part of it off as your own work.
'-  Please live all copyright notices in tacked in the scripts and the outputted HTML. 
'-   
'-  I have spent many unpaid hours in development and support this and other scripts
'-  available for free from Livio.net. If you like using this script then please help support
'-  the development and update of this and future scripts by a small donation. All scripts
'-  published remain free and you may still use them as much as you like both privately and
'-  commercially, the donation is only a request to help me cover some of the costs involved.
'-   
'-  Should you make any improvements to this script, please be kind enough to let me
'-  know so that i may improve mine for the rest of the people who use it. Thanks.
'-
'-  You can ask for more info or post support questions at: - htttp://www.livio.net
'---------------------------------------------------------------------------------------






